package com.moniteach.bo;

import org.json.JSONException;
import org.json.JSONObject;

import com.moniteach.constaints.C;

public class Predmet {
	private String id;
	private String name;
	private String description;

	public Predmet(String id, String name, String description) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
	}

	public Predmet(JSONObject jo) {
		try {
			this.id = jo.getString(C.Const.id);
			this.name = jo.getString(C.Const.name);
			this.description = jo.getString(C.Const.description);
		} catch (JSONException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

}
